package Main;


import javax.swing.JFrame;

/**
 *
 * @author Emmanuel
 */
public class Fenetre extends JFrame {
    
    public Fenetre(Drawer d, Simulator s, Personnage p) {
        super();
        this.setTitle("Blind race");

        this.setSize(800, 600);
        this.setLocationRelativeTo(null);               
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setContentPane(d);
        
        this.addKeyListener(new EventHandler(s, p));
                
        this.setVisible(true);
    }
}
